package com.ZengQi.event.controller;

import com.ZengQi.event.entity.Comment;
import com.ZengQi.event.service.CommentService;
import com.ZengQi.event.service.impl.CommentServiceImpl;

import java.util.List;

public class AdminCommentController {
    private CommentService commentService=new CommentServiceImpl();

    public List<Comment> allComment(){
        return commentService.allList();


    }
   public boolean deleteComment(Comment comment){
        return commentService.removeComment(comment);
    }
}
